package com.sise.foodplatform.service.impl;

import com.sise.foodplatform.dao.MenuMapper;
import com.sise.foodplatform.pojo.MainMenu;
import com.sise.foodplatform.pojo.UserMenu;
import com.sise.foodplatform.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<MainMenu> getMenus() {
        return menuMapper.getMenus();
    }

    @Override
    public List<UserMenu> getUserMenus() {
        return menuMapper.getUserMenus();
    }
}
